package com.example.webaction;

import com.opensymphony.xwork2.ActionSupport;
public class HelloWorld extends ActionSupport {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String message;

	public String getMessage() {
		return message;
	}

	// 页面访问 http://localhost:8080/ssh-struts2/hello-world.action
	// 页面访问 http://localhost:8080/ssh-struts2/hello-world
	public String execute() {
		message = "[from /com.example.webaction] Hello World!";
		return SUCCESS;
	}

	// 页面访问 http://localhost:8080/ssh-struts2/hello-world!execMethod.action
	// 页面访问 http://localhost:8080/ssh-struts2/hello-world!execMethod
	public String execMethod() {
		message = "[from /com.example.webaction] Execute Method Hello World!";
		return "pakage";
	}
}
